package com.bed.lovewithpatientbed.service;

import com.bed.lovewithpatientbed.pojo.Address;
import com.bed.lovewithpatientbed.pojo.Hospital;

import java.util.List;

/**
 * @author yg
 * @version 1.0.0
 * @ClassName HospitalService.java
 * @Description TODO
 */
public interface AddressService {

    List<Address> getAddressBySelect(Address address);

    int addAddress(Address address);

    int updatAddress(Address address);

    /**
     * @description 查出所有地址信息
     * @author tyl
     * @updateTime 2020/10/14 16:03
     */
    List<Address> selectAll();
    /**
     * @description 按省份查询地址
     * @author tyl
     * @updateTime 2020/10/14 19:11
     */
    List<Address> selectByProvince(String province);
    /**
     * @description 去重查询所有地址信息
     * @author tyl
     * @updateTime 2020/10/15 9:36
     */
    List<Address> selectByDistinct();

    List<Address> getAddressByID(List<Integer> adids);

    Address getById(Integer adid);
    /**
     * @description 根据省份查地址的集合
     * @author tyl
     * @updateTime 2020/10/16 11:52
     * @param province:省份的集合
     */
    List<Address> selectByProvinceList(List<String> province);

    /**
     * @title selectCity
     * @description 根据省份查询城市(去重)
     * @author sunningsheng
     * @updateTime
     * @throws
     */
    List<Address> selectCity(String province);

    /**
     * @title selectDistrict
     * @description 根据城市查询区(去重)
     * @author sunningsheng
     * @updateTime
     * @throws
     */
    List<Address> selectDistrict(String city);

    /**
     * @title selectHospital
     * @description 根据区查询医院
     * @author sunningsheng
     * @updateTime
     * @throws
     */
    List<Hospital> selectHospital(String district);

    /**
     * @title selectByCity
     * @description 根据城市查询地址信息
     * @author sunningsheng
     * @updateTime
     * @throws
     */
    List<Address> selectByCity(String city);

    /**
         * @title 根据给出的省份查地市
         * @description
         * @author yg
         * @updateTime
         * @throws
         */

    List<Address> getProvince();

    List<Address> getCity(String province);

    List<Address> getDistinct(String province,String city);

    /**
     * @title selectByCity
     * @description 根据区查询地址信息
     * @author sunningsheng
     * @updateTime
     * @throws
     */
    List<Address> selectByDistrict(String district);

    /**
         * @title 新增地址信息
         * @description
         * @author yg
         * @updateTime
         * @throws
         */

    int insertAddress(Address address);
    /**
         * @title 根据省市区三个条件查询
         * @description
         * @author yg
         * @updateTime
         * @throws
         */

    List<Address> selectByAddCon(Address address);

}
